﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FusionChargen {
    public partial class MainForm : Form {
        public MainForm() {
            InitializeComponent();
        }

        private void newToolStripMenuItem_Click(object sender, EventArgs e) {
            CharacterForm cf = new CharacterForm();
            cf.MdiParent = this;
            cf.Show();
        }

        private void openToolStripMenuItem_Click(object sender, EventArgs e) {
            if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
                foreach (String path in openFileDialog1.FileNames) {
                    CharacterForm cf = new CharacterForm();
                    cf.MdiParent = this;
                    cf.Open(path);
                    cf.Show();
                }
            }

        }
    }
}
